﻿function test() {
    $.ajax({
        type: "POST",
        contentType: "application/json",
        url: "/WebService.aspx/BtnClick",
        data: "{}",
        dataType: 'json',
        success: function (result, textStatus) {
            eval("var student =" + result.d);
            alert(student.Name);
        }
    });
}